package com.croa.mail;

import java.util.HashMap;
import java.util.Map;

public class MailTask
    {
        static final int TYPE_VERIFICATION_CODE = 1;
        static final int TYPE_ORG_MEMBER_INVITE = 2;
        static final int TYPE_ORG_INVITE 		= 3;

        static final int TYPE_ADMIN_CREATE_ORG 	= 4;
        static final int TYPE_ORG_MEMBER_RESET_PASSWORD = 5;

        static final int TYPE_VEHICLE_REPORT 	= 6;

        public Integer type;
        public String toAddress;
        public Map<String, Object> data;
        public MailTask() {}

        public MailTask(Integer type, String toAddress)
        {
            this.type = type;
            this.toAddress = toAddress;
            this.data = new HashMap<>();
        }

        public void putData(String key, Object value)
        {
            this.data.put(key, value);
        }
    }